a = "12398877498275870"
print(sorted(a))